package com.guoxue.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.guoxue.dao.IUserToOSSAudioDao;
import com.guoxue.domain.UserToOSSAudioVo;
import com.guoxue.service.IUserToOSSAudioService;
@Service("userToOSSAudioService")
public class UserToOSSAudioServiceImpl  implements IUserToOSSAudioService{

	@Autowired  
    private IUserToOSSAudioDao dao;

	@Override
	public void saveUserToAudio(UserToOSSAudioVo userToAudio) {
		// TODO Auto-generated method stub
		dao.saveUserToAudio(userToAudio);
	}

	@Override
	public UserToOSSAudioVo getUserToAudioByUid(int uid) {
		// TODO Auto-generated method stub
		return dao.getAudioInfo(uid);
	}

	@Override
	public UserToOSSAudioVo getUserToAudioByUid(int uid, String lastFileName) {
		// TODO Auto-generated method stub
		return dao.getUserToAudioByUid(uid, lastFileName);
	}

	@Override
	public void deleteUserToAudioByUid(UserToOSSAudioVo userToAudio) {
		// TODO Auto-generated method stub
		dao.deleteUserToAudioByUid(userToAudio);
	}
 
}
